﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Enter.Web.SystemAdmin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" type="text/css" href="css/style.css" />

    <script language="javascript">
        function checkLogin() {
            if (document.forms[0].txtLoginName.value == "") {
                alert("请输入用户名");
                return false;
            }
            if (document.forms[0].txtPass.value == "") {
                alert("请输入用户密码");
                return false;
            }
            if (document.forms[0].txtRndom.value == "") {
                alert("请输入验证码");
                return false;
            }
            return true;
        }
    </script>

</head>
<body>
    <form runat="server" id="login" name="login">
    <div id="top">
    </div>
    <div id="center">
        <div id="center_left">
        </div>
        <div id="center_middle">
            <div class="user">
                <label>
                    用户名：
                    <asp:TextBox ID="txtLoginName" runat="server"></asp:TextBox>
                </label>
            </div>
            <div class="user">
                <label>
                    密&nbsp;&nbsp;&nbsp; 码：
                    <asp:TextBox ID="txtPass" runat="server"></asp:TextBox>
                </label>
            </div>
            <div class="chknumber">
                <label>
                    验证码：
                    <asp:TextBox Width="54px" ID="txtRndom" runat="server"></asp:TextBox>
                </label>
                <img id="imgvalid" align="absMiddle" alt="图片看不清？点击重新得到验证码" onclick="CheckCode_onClick();"
                    border="0" name="img" src="" />
            </div>
        </div>
        <div id="center_middle_right">
        </div>
        <div id="center_submit">
            <div class="button">
                <asp:ImageButton ID="ImageButton1" ImageUrl="images/dl.gif" OnClientClick="checkLogin()"
                    runat="server" onclick="ImageButton1_Click" />
            </div>
        </div>
        <div id="center_right">
        </div>
    </div>
    <div id="footer">
    </div>

    <script type="text/javascript" language="JavaScript">
        function CheckCode_onClick() {
            document.getElementById("imgvalid").src = "Common/validcode.aspx?ran=" + (new Date()).toString();
        }
        CheckCode_onClick();
    </script>

    </form>
</body>
</html>